Skip to content

Type punned pointer #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2014
Merged

Type punned pointer #29

merged 2 commits into from
Aug 14, 2014

Conversation

mloy
Copy link
Contributor

@mloy mloy commented Aug 13, 2014

We are using some rigorous gcc compiler settings in our build system. One of which is -Werror=strict-aliasing.
This one complains about the workaround for initializing value::null.

The first commit activates the compiler warning in order to provoke the error.
The second one shold solve the problem.

regards,
Matthias

Matthias Loy added 2 commits August 13, 2014 13:19
"dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing]"
cdunn2001 added a commit that referenced this pull request Aug 14, 2014
Type punned pointer

I'll revert this if anyone reports a problem. *strict-aliasing* is not my favorite compiler warning.
@cdunn2001 cdunn2001 merged commit 3515db1 into open-source-parsers:master Aug 14, 2014
@mloy mloy deleted the type-punned-pointer branch August 14, 2014 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants